<nz-card>
  <sf #searchForm
    mode="search"
    [schema]="searchSchema"
    [formData]="queryFormData"
    [button]="null"
  >
 
 
  </sf>  
  <div nz-row>
    <div nz-col nzSpan="12" style="padding-left: 5px;padding-bottom: 5px;"><button (click)="add()" nz-button nzType="primary"><i nz-icon nzType="plus"></i>事项新增</button></div>
    <div nz-col nzSpan="12" style="text-align: right;padding-right: 5px;padding-bottom: 5px;">
      <button (click)="query(true)" nz-button nzType="primary"><i nz-icon nzType="search"></i>检索</button>
      <button (click)="this.searchForm.reset()" nz-button nzType="default"><i nz-icon nzType="reload" nzTheme="outline"></i>重置</button>
    </div>
  </div>
</nz-card>
<nz-card>
  <lb-grid #st  [columns]="columns" sname="ZSK_SXCX" [queryparas]="{}" > 
    <ng-template lb-row="custom" let-item let-index="index" let-column="column">
      <nz-switch [ngModel]="item.DAD023=='1'"  (ngModelChange)="changeSxState(item.DAD017)" ></nz-switch>
   </ng-template>
  </lb-grid>
</nz-card>

<nz-modal [(nzVisible)]="showAddWindow" nzTitle="事项新增" (nzOnCancel)="handleCancel()" (nzOnOk)="handleOk()" nzWidth="500">
  <sf #addWindow [schema]="addSchema" [formData]="addFormData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>

<nz-modal [(nzVisible)]="showModiWindow" nzTitle="事项修改" (nzOnCancel)="modiHandleCancel()" (nzOnOk)="modiHandleOk()" nzWidth="500">
  <sf #modiWindow [schema]="addSchema" [formData]="modiFormData" [button]="null" nzOkText="确定">
  </sf>
</nz-modal>



